package com.platform.service;

import com.platform.dao.ApiUserLevelMapper;
import com.platform.dao.ApiUserMapper;
import com.platform.dao.ApiUserTransactionRecordMapper;
import com.platform.entity.SmsLogVo;
import com.platform.entity.UserLevelVo;
import com.platform.entity.UserTransactionRecordVo;
import com.platform.entity.UserVo;
import com.platform.utils.RRException;
import com.platform.validator.Assert;
import org.apache.commons.codec.digest.DigestUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;


@Service
public class ApiUserTransactionRecordService {
    @Autowired
    private ApiUserTransactionRecordMapper apiUserTransactionRecordMapper;

    public UserTransactionRecordVo save(UserTransactionRecordVo userTransactionRecordVo){
        apiUserTransactionRecordMapper.save(userTransactionRecordVo);
        return userTransactionRecordVo;
    }

    public List<UserTransactionRecordVo> queryList(Map<String, Object> map) {
        return apiUserTransactionRecordMapper.queryList(map);
    }

    public List<UserTransactionRecordVo> queryRebateList(Map<String, Object> map) {
        return apiUserTransactionRecordMapper.queryRebateList(map);
    }

    public int queryRebateTotal(Map<String, Object> map) {
        return apiUserTransactionRecordMapper.queryRebateTotal(map);
    }

    public int queryTotal(Map<String, Object> map) {
        return apiUserTransactionRecordMapper.queryTotal(map);
    }
}
